/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.springblade.modules.admin.dto.MaintainPlanWeeklyReportProjectPageDTO;
import org.springblade.modules.admin.dto.PlanWeeklyListDTO;
import org.springblade.modules.admin.dto.WeeklyReportRepairListPageDTO;
import org.springblade.modules.admin.dto.WeeklyReportRescueListPageDTO;
import org.springblade.modules.admin.entity.MaintainPlanDayCount;
import org.springblade.modules.admin.entity.MaintainPlanWeeklyReport;
import org.springblade.modules.admin.vo.*;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 任务周报 Mapper 接口
 *
 * @author lsay
 * @since 2024-09-02
 */
public interface MaintainPlanWeeklyReportMapper extends BaseMapper<MaintainPlanWeeklyReport> {

	IPage<MaintainPlanWeeklyReportProjectPageVO> selectMaintainPlanWeeklyReportPage(IPage<MaintainPlanWeeklyReportProjectPageVO> page,@Param("maintainPlanWeeklyReportPageDTO") MaintainPlanWeeklyReportProjectPageDTO maintainPlanWeeklyReportPageDTO);

	List<MaintainPlanWeeklyReportProjectPageListVO> selectMaintainPlanWeeklyReportList(@Param("maintainPlanWeeklyReportPageDTO")  MaintainPlanWeeklyReportProjectPageDTO maintainPlanWeeklyReportPageDTO);

	MaintainPlanWeeklyReportProjectDetailVO selectMaintainPlanWeeklyReportDetail(Long reportId, Date weekEndTime);

	IPage<WeeklyReportRepairListPageVO> planViewRepairListPage(IPage<WeeklyReportRepairListPageVO> page,@Param("weeklyReportRepairListPageDTO") WeeklyReportRepairListPageDTO weeklyReportRepairListPageDTO);

	IPage<WeeklyReportRescueListPageVO> planViewRescuePage(IPage<WeeklyReportRescueListPageVO> page, @Param("weeklyReportRescueListPageDTO") WeeklyReportRescueListPageDTO weeklyReportRescueListPageDTO);
    List<PlanWeeklyListDTO> selectPlanList(@Param("weekBeginTime") String weekBeginTime,@Param("weekEndTime") String weekEndTime);

	List<MaintainPlanDayCount> selectPlanDayCountByDate(@Param("weekBeginTime") String weekBeginTime,@Param("weekEndTime") String weekEndTime);

	List<ElevatorSimpleInfoVO> selectElevatorSimpleInfo(@Param("weekBeginTime") String weekBeginTime,@Param("weekEndTime") String weekEndTime);

	List<MaintainPlanWeeklyReport> selectListByDate(@Param("weekBeginTime") String weekBeginTime,@Param("weekEndTime") String weekEndTime);

	MaintainPlanWeeklyReport selectDetail(@Param("weeklyReport") MaintainPlanWeeklyReport weeklyReport);

	List<Map<String, Object>> selectEmpElevator(@Param("buildingId") Long buildingId,@Param("typeStatus") Integer typeStatus,@Param("startTime") String startTime,@Param("endTime") String endTime);

	Map<String, Object> repairPlanListTitleCount(@Param("weeklyReportRepairListPageDTO") WeeklyReportRepairListPageDTO weeklyReportRepairListPageDTO);
}
